<template>
  <div>
    <van-nav-bar
      :title="$route.meta.title"
      left-text="返回"
      @click-left="$router.back()"
      left-arrow
    >
      <template #right>
        <van-icon name="search" size="18" @click="link('/select')" />
      </template>
    </van-nav-bar>
  </div>
</template>

<script>
import Vue from "vue";
import { NavBar, Icon } from "vant";

Vue.use(NavBar);
Vue.use(Icon);
export default {
  methods: {
    link(href) {
      this.show = false;
      this.$router.push(href);
    }
  }
};
</script>

<style lang="scss" scoped></style>
